/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package model;

/**
 *
 * @author Stupi
 */
public class CostFunction {
    
    //ova klasa ce racunati funkciju troskova,
    
    private int costYvalue;
    private int fixedCosts;
    private int varCosts;
    
    //ovo x je ustv ono q, kao kolicina proizvoda
    //ovu metodu koristi kontroler
    public void calculateYCostValue (int x) {
        
        costYvalue = fixedCosts + (varCosts*x);
        
    }

    public int getCostYvalue() {
        return costYvalue;
    }

    public void setCostYvalue(int costYvalue) {
        this.costYvalue = costYvalue;
    }
    
   public double getFixedCosts(){
        return fixedCosts;
    }
    
    public void setFixedCosts(int fixedCosts){
        this.fixedCosts = fixedCosts;
    }
    
     public double getVarCosts(){
        return varCosts;
    }
    
    public void setVarCosts(int varCosts){
        this.varCosts = varCosts;
    }
    
    
    
}
